import { NavLink } from "react-router"
import { Card } from "antd"
const Home = () => { 
    return (
        <Card>
            <h1>Home</h1>
            {/* <NavLink to="/about?糖度=修仙&加料=老板三根头发&age=18">About</NavLink> */}
            {/* state 传参方式 */}
            <NavLink to="/about" state={[{name: '张三'},{name: '李四'}]}>About</NavLink> 
        </Card>
    )
}

export default Home